package day3;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            String s=sc.nextLine();
            String[] x=s.split(" ");
            String ret="";
            for (int i=0;i<x.length;i++) {
                String c=x[i];
                if(i==x.length-1)
                    ret=ret+c;
                ret=ret+" "+c;
            }
        }
    }
}
